package com.daidai.testservice

import android.app.Service
import android.content.Intent
import android.os.IBinder
import java.util.*

class DXService : Service() {
    var counter = 0
    override fun onCreate() {
        super.onCreate()
        Timer().schedule(object : TimerTask() {
            override fun run() {
                MyLog.info("DXService===counter:${counter}")
                counter++
            }
        },0,2000L)
    }
    override fun onBind(intent: Intent?): IBinder? {
        return null
    }
}